@tailwind base;
@tailwind components;
@tailwind utilities;

/* You can add global styles here */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* 彩带动画 */
@keyframes confetti-fall {
  0% { 
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
  }
  25% {
    opacity: 1;
  }
  100% { 
    transform: translateY(600px) translateX(var(--tx, 100px));
    opacity: 0;
  }
}

.animate-confetti {
  --tx: 100px;
  opacity: 0;
}

.animate-confetti:nth-child(even) {
  --tx: -80px;
}

.animate-confetti:nth-child(3n) {
  --tx: 60px;
}

.animate-confetti:nth-child(3n+1) {
  --tx: -50px;
}

/* 惊喜文字动画 */
@keyframes surprise-in {
  0% { 
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    transform: scale(1.1);
  }
  100% { 
    opacity: 1;
    transform: scale(1);
  }
}

.animate-surprise-in {
  animation: surprise-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* 添加新的动画效果 */
@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out forwards;
}
